package com.rd.student.jike.class1.jiangwanli;

import javax.swing.text.html.HTMLDocument;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Random;
//1-100
public class SuiJiShu {
    public static void main(String[] args) {

        Collection collection = new ArrayList();
        Collection collection1 = new ArrayList();
        for (int i = 0;i < 10;i++){
            Random random = new Random();
            int num = random.nextInt(100)+1;
            collection.add(num);
            if (num >= 10){
                collection1.add(num);
            }
        }
        System.out.println(collection1);
    }
}
